
default_platform(:ios)

platform :ios do
 # 指定打包方式 ["app-store", "ad-hoc", "package", "enterprise", "development", "developer-id"]
  lane :test do
    build_app(
      scheme: "FastlaneDemo", 
      workspace: "FastlaneDemo.xcworkspace", 
      include_bitcode: true,
      output_directory: "./fastlane/ipa",
      clean: true,
    )
    upload_to_testflight(
      username: "woshixiaolei@qq.com"
    )
    increment_build_number
  end

  lane :fir do
    build_app(
      export_method: "ad-hoc",
      scheme: "FastlaneDemo", 
      workspace: "FastlaneDemo.xcworkspace", 
      include_bitcode: true,
      output_directory: "./fastlane/ipa",
      clean: true
    )
    firim(firim_api_token: "a7d3b217e7132bd0b79ffa45f35651b3")
  end

  lane :store do
    build_app(
      scheme: "FastlaneDemo", 
      workspace: "FastlaneDemo.xcworkspace", 
      include_bitcode: true,
      output_directory: "./fastlane/ipa",
      clean: true
    )
    upload_to_app_store(
      force: true,
      username: "woshixiaolei@qq.com"
    )
  end


end
